package jfood.ontology.meal;
import java.util.logging.Level;
import jfood.ontology.query.AskForMealAction;

import jade.content.onto.Ontology;
import jade.content.onto.BeanOntology;
import jade.content.onto.BeanOntologyException;
import jade.util.Logger;


public class MealOntology extends BeanOntology {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1631327561661618066L;
	public static final String NAME = "meal-ontology";
    private static final Ontology instance = new MealOntology();
    private MealOntology() {
        super(NAME);
        try {
            add(String.class);
            add(Recipe.class);
            add(Ingredient.class);
            add(Meal.class);
            add(AskForMealAction.class);
            add(ServeMealAction.class);
        } catch (BeanOntologyException ex) {
            Logger.getLogger(MealOntology.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public static Ontology getInstance() {
        return instance;
    }
}
